#!/usr/bin/env bash
set -e # 这告诉bash一但有任何一个语句返回非真的值，则退出bash。

PROG_DIR=`dirname $0`
PROG_DIR=`cd "$PROG_DIR" && pwd`

. "$PROG_DIR/vic/privilege.sh"

vic_ensure_root_privilege "$@"

install_any() {
    apt-get install -y build-essential

    apt-get install -y gdb

    apt-get install -y pkg-config

    apt-get install -y autoconf

    apt-get install -y libtool

    apt-get install -y zlib1g-dev

    apt-get install -y liblzma-dev

    apt-get install -y libbz2-dev

    apt-get install -y uuid-dev

    apt-get install -y libprotobuf-dev protobuf-compiler

    apt-get install -y libssl-dev

    apt-get install -y libtinyxml-dev

    #apt-get install -y postgresql
    #apt-get install -y libpq-dev

    apt-get install -y ragel

    apt-get install -y python
    apt-get install -y python-dev

    apt-get install -y clang llvm libclang-dev

    apt-get install -y golang

    apt-get install -y libboost-all-dev

    apt-get install -y ssh

    apt-get install -y vim

    apt-get install -y cmake

    apt-get install -y git

    apt-get install -y bash-completion

    apt-get install -y curl

    apt-get install -y apache2-utils

    apt-get install -y lrzsz

    apt-get install -y dos2unix

    apt-get install -y screen

    apt-get install -y checkinstall

    apt-get install -y htop sysstat

}

install_any

